//
//  NRWCarRootTableViewController.m
//  New_Runway
//
//  Created by NewLife on 2018/3/6.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "NRWCarRootTableViewController.h"

@interface NRWCarRootTableViewController ()<UIGestureRecognizerDelegate>

@end

@implementation NRWCarRootTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.tabH = height_tabbar;
    self.navH = height_navbar;
    self.BotH = bottom_height;
    [self networkStatusNotReachable];
    
    if([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]){
        self.navigationController.interactivePopGestureRecognizer.delegate =self;
        self.navigationController.interactivePopGestureRecognizer.enabled = YES;
        
    }
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];//白色
}

- (void)viewDidAppear:(BOOL)animated{
    
    [super viewDidAppear:animated];
    
#ifdef DEBUG
    NSLog(@"viewDidAppear %@", self.class);
#endif
    
    //    self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}

- (void)dealloc {
    
#ifdef DEBUG
    NSLog(@"dealloc %@", self.class);
#endif
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)networkStatusNotReachable{
    __weak typeof(self.view)weakSelf = self.view;
    
    _navigationBarView = [[NRWCarNavigationView alloc] initWithController:self andTitle:nil andStyle:navgationStyle_deepColor];
    [self.view addSubview:_navigationBarView];
    [_navigationBarView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(weakSelf).with.offset(0);
        make.left.equalTo(weakSelf).with.offset(0);
        make.height.mas_equalTo(self.navH);
        make.right.equalTo(weakSelf).with.offset(0);
    }];
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
    
    
}

- (void)mainTabBarFirstSelect
{
    
    
}
- (void)mainTabBarSelectAgain{
    
    
}
-(void)rightItemClick{
    
    
}

@end
